/*
 * Copyright 1990-2018 the original author or authors.
 * this file is created by Alex at 2018/1/21 for yuan-generator
 *  connect to me jhnjgl8989289@126.com
 */
package com.yuankeji.generator.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * © Copyright www.yuan-keji.com
 *
 * @author Alex
 * @date 2018/1/21
 * @description the class IndexController
 **/
@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping("/index.html")
    public String index(ModelMap mm, HttpServletRequest request, HttpServletResponse response) {

        mm.addAttribute("picUrl","www.yuan-keji.com");
        mm.addAttribute("username","alex");
        return "index";
    }
}
